export const state =()=>({
  userInfo:{
    id:'',
    avatar_url:'',
    loginname:'',
    accesstoken:''
  }
})
export const getters = {
  userInfo(state){
    return state.userInfo
  }
}
export const mutations = {
  SET_USER_INFO(state,userInfo){
    state.userInfo = userInfo;
  }
}
export const  actions = {
  SetUserInfo({commit},userInfo){
    commit('SET_USER_INFO',userInfo)
  }
}
